import request from '@/utils/request'

var url = process.env.VUE_APP_SUM_PUB;
// 新增数据库配置
export function Add(data) {
  return request({
    url: url + '/tool-server/database/create',
    method: 'post',
    data: data
  })
}



//
export function Update(data) {
  return request({
    url: url + '/tool-server/database/modify',
    method: 'post',
    data: data
  })
}

// 查询数据库配置列表
export function getList(data) {
  return request({
    url: url + '/tool-server/database/list',
    method: 'post',
    data: data
  })
}


//
export function Show(data) {
  return request({
    url: url + '/tool-server/database/detail',
    method: 'post',
    data: data
  })
}

// 删除数据库配置
export function Delete(data) {
  return request({
    url: url + '/tool-server/database/delete',
    method: 'post',
    data: data
  })
}


//获取引擎列表
export function engineList(data) {
  return request({
    url: url + '/database-engine/label-list',
    method: 'post',
    data: data
  })
}


//获取引擎列表
export function generateConfig(data) {
  return request({
    url: url + '/lander/generate-config',
    method: 'post',
    data: data
  })
}

